package code;

public class QuestionNum_05_2 {
    public static void main(String[] args) {
        printNum();
    }

    public static void printNum(){
        int flag = 0;
        for (int i=1;i<100;i++){
            if (i % 10 == 9 || i / 10 % 10 == 9){
                continue;
            }
            System.out.print(i+" ");
            flag++;
            if (flag == 5){
                flag = 0;
                System.out.println("");
            }
        }
    }
}
